<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">
        <title>物流</title>
        <link href="__MZUI__/css/admin.css" rel="stylesheet" type="text/css">
        <link href="__MZUI__/css/amazeui.css" rel="stylesheet" type="text/css">
        <link href="__CSS__/user/personal.css" rel="stylesheet" type="text/css">
        <link href="__CSS__/user/lostyle.css" rel="stylesheet" type="text/css">
        <link href="__CSS__/common.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <!--头 -->
    <include file="Include/top" />
        <include file="Include/header" />
        <div class="center">
            <div class="col-main">
                <div class="main-wrap">
                    <div class="user-logistics">
                        <!--标题 -->
                        <div class="am-cf am-padding">
                            <div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">物流跟踪</strong> / <small>Logistics&nbsp;History</small></div>
                        </div>
                        <hr/>
                        <div class="package-title">
                            <div class="m-item">
                                <div class="item-pic">
                                    <img src="../images/kouhong.jpg_80x80.jpg" class="itempic J_ItemImg">
                                </div>
                                <div class="item-info">
                                    <p class="log-status">物流状态:<span>
                                            <?php
                                                switch ($arr->status) {
                                                    case 3:
                                                        echo '在途中';
                                                        break;
                                                    case 4:
                                                        echo '已揽件';
                                                        break;
                                                    case 5:
                                                        echo '疑难件';
                                                        break;
                                                    case 6:
                                                        echo '已签收';
                                                        break;
                                                    case 7:
                                                        echo '退签';
                                                        break;
                                                    case 8:
                                                        echo '派件中';
                                                        break;
                                                    case 9:
                                                        echo '退回';
                                                        break;
                                                    default:
                                                        echo '物流单号暂无结果';
                                                        break;
                                                }
                                            ?>
                                        </span> </p>
                                    <p>承运公司：<?php echo $arr->company; ?></p>
                                    <p>快递单号：<?php echo $arr->nu; ?></p>
                                    <p>官方电话：<?php echo $arr->phone; ?></p>
                                </div>
                            </div>
                            <div class="clear"></div>
                        </div>
                        <div class="package-status">
                            <ul class="status-list">		
                                <?php foreach ($arr->data as $key => $obj) { ?>
                                    <?php if ($key == 0) { ?>
                                        <li class="latest" style="color:#f00;">
                                            <p class="text"><?php echo $obj->context ?></p>
                                            <div class="time-list">
                                                <span class="date"><?php echo $obj->time ?></span>
                                            </div>
                                        </li>
                                    <?php } else { ?>
                                        <li class="latest">
                                            <p class="text"><?php echo $obj->context ?></p>
                                            <div class="time-list">
                                                <span class="date"><?php echo $obj->time ?></span>
                                            </div>
                                        </li>
                                    <?php } ?>
                                <?php } ?>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <include file="Include/navigation" />  
        </div>
<include file="Include/footer" />
    </body>

</html>